package com.kaibes.module.user.safe;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

import com.kaibes.core.base.annotation.Description;
import com.kaibes.core.validator.Regex;
import com.kaibes.core.validator.ValidatorConsts;

import lombok.Data;

@Data
@Description("用户安全信息")
public class UserSafeUpdate {

    @Description("手机号码")
    @Regex(regex = ValidatorConsts.MOBILE, message = "手机号码格式不正确")
    @NotBlank
    private String mobile;
    @Description("电子邮箱")
    @Email(message = "电子邮箱格式不正确")
    @NotBlank
    private String email;
    @Description("安全问题")
    private String question;
    @Description("安全答案")
    private String answer;
    
}
